﻿<Window x:Class="Project.SearchFunctionary"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:CustomControls="clr-namespace:CustomControls;assembly=CustomControls"
        Title="SearchFunctionary" Height="550" Width="900">
    <Grid Name="Content">
        <Grid Height="36" Margin="11,11,56,0" Name="gridTitle"  VerticalAlignment="Top">
            <Border BorderBrush="#5C5C5C" BorderThickness="0,0,0,2">
                <TextBlock FontSize="24" FontWeight="Normal" Text="Ver Funcionarios" Width="711" HorizontalAlignment="Left" ></TextBlock>
            </Border>
        </Grid>
        <Grid Margin="0,35,0,0">
            <ListView Height="328" ItemContainerStyle="{DynamicResource ListViewEmployeeContainerStyle}" ItemsSource="{Binding}" Margin="46,99,47,0" Name="listViewEmployees" VerticalAlignment="Top" PreviewMouseDoubleClick="listViewEmployees_PreviewMouseDoubleClick">
                <ListView.View>
                    <GridView>
                        <GridViewColumn CellTemplate="{StaticResource CiEmployeeItemTemplate}" Header="C.I." Width="150" />
                        <GridViewColumn CellTemplate="{StaticResource NameEmployeeItemTemplate}" Header="Nombre" Width="270" />
                        <GridViewColumn CellTemplate="{StaticResource WorkingRoleItemTemplate}" Header="Cargo" Width="190" />
                        <GridViewColumn CellTemplate="{StaticResource RankEmployeeItemTemplate}" Header="Rango" Width="190" />
                    </GridView>
                </ListView.View>
            </ListView>
            <Label Content="Nombre:" Height="26" HorizontalAlignment="Left" Margin="95,62,0,0" Name="label1" VerticalAlignment="Top" />
            <Label Content="C.I.:" Height="28" HorizontalAlignment="Left" Margin="536,65,0,0" Name="label3" VerticalAlignment="Top" />
            <Label Content="Buscar por:" Height="28" HorizontalAlignment="Left" Margin="95,28,0,0" Name="label7" VerticalAlignment="Top" />
            <RadioButton Content="Nombre" GroupName="ByWhat" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="160,28,0,0" Name="rbtnByName" VerticalAlignment="Top" PreviewMouseLeftButtonDown="rbtnByName_PreviewMouseLeftButtonDown" />
            <RadioButton Content="C.I." GroupName="ByWhat" Height="16" HorizontalAlignment="Left" Margin="227,28,0,0" Name="rbtnByCi" VerticalAlignment="Top" PreviewMouseLeftButtonDown="rbtnByCi_PreviewMouseLeftButtonDown" />
            <CustomControls:MaskTextBox DataType="RegEx" Height="23" HorizontalAlignment="Left" Margin="170,62,0,0" MaxLength="60" Name="tbName" RegEx="^[A-Za-z'áéíóúÁÉÍÓÚÑñ\s]+$" VerticalAlignment="Top" Width="313" IsEnabled="True" TextChanged="tbName_TextChanged" />
            <CustomControls:MaskTextBox DataType="RegEx" Height="23" HorizontalAlignment="Left" Margin="571,61,0,0" MaxLength="10" Name="tbCI" RegEx="^[0-9\s]+$" VerticalAlignment="Top" Width="145" IsEnabled="True" TextChanged="tbCI_TextChanged" />
        </Grid>
    </Grid>
</Window>
